//
//  TLAdvertisementTableViewCell.m
//  Home
//
//  Created by 陶亮 on 16/6/8.
//  Copyright © 2016年 LanJue. All rights reserved.
//

#import "TLAdvertisementTableViewCell.h"

@implementation TLAdvertisementTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self creatSubViews];
    }
    
    return self;


}

-(void)creatSubViews{

//    self.backgroundColor = [UIColor yellowColor];
    self.adImageView = [[UIImageView alloc]init];
    [self addSubview:self.adImageView];
    self.adImageView.layer.masksToBounds = YES;
    self.adImageView.layer.cornerRadius = 10.00*AUTO_WIDTH;
//    self.adImageView.backgroundColor = [UIColor magentaColor];
    [self.adImageView mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.top.equalTo(self).offset(15.00*AUTO_HEIGHT);
        make.left.equalTo(self).offset(18.00*AUTO_WIDTH);
        make.size.mas_equalTo(CGSizeMake(KScreenWidth - 36.00*AUTO_WIDTH, 145.00*AUTO_HEIGHT));
        
    }];

    self.remarkLabel = [[UILabel alloc]init];
    [self addSubview:self.remarkLabel];
    self.remarkLabel.font=[UIFont systemFontOfSize:14*AUTO_WIDTH];
    self.remarkLabel.alpha=0.5;
//    self.remarkLabel.backgroundColor = [UIColor orangeColor];
    [self.remarkLabel mas_makeConstraints:^(MASConstraintMaker *make) {
       
        make.top.equalTo(self.adImageView.mas_bottom).offset(0);
        make.bottom.equalTo(self).offset(0);
        make.left.equalTo(self).offset(18.00*AUTO_WIDTH);
        make.width.mas_equalTo(KScreenWidth - 18.00*AUTO_WIDTH);
        
    }];


}




@end
